import request from "@/utils/request";
// 评论相关API
const API = {
  GET_COMMENT_LIST: "/article/getArticleComments",  //获取评论列表
  POST_COMMENT: "/user/postComment",  //发布评论
}

// 获取评论列表接口
export const reqGetCommentList = (params) => request.get(API.GET_COMMENT_LIST + `?id=${params.passageId}`);

// 发布评论接口
export const reqPostComment = (params) => request.post(API.POST_COMMENT, params);